package observer;

import org.junit.Test;

/**
 * @author zhiqi.shao
 * @Date 2018/6/7 10:18
 */
public class ObserverTest {

    @Test
    public void test(){
        PayStatusUpdateSubject updateSubject=new PayStatusUpdateSubject();
        updateSubject.addObserver(new EmailObserver());
        updateSubject.addObserver(new StockObserver());
        updateSubject.updateStatus(1);
    }
}
